<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('report')} > ${i18n.getMessage('report.consultative')}">
</@showTitle>

<div style="padding: 10px 0; text-align: center;">
	<form onsubmit="return false;">
		<strong>${i18n.getMessage('month')}</strong>:
		<select name="month" class="w050">
			<#list 1..12 as month>
				<option value="${month}" <#if month?string('00')=now?string('MM')>selected</#if>>${month?string('00')}</option>
			</#list>
		</select>
			
		<strong>${i18n.getMessage('year')}</strong>:
			<select name="year" class="w050">
				<#list 2007..2020 as year>
				<option value="${year}" <#if year?string=now?string('yyyy')>selected</#if>>${year}</option>
			</#list>
	     </select>
	     <input type="button" value="${i18n.getMessage('report')}" onclick="searchForm(this.form, 'system/exportConsultativeExcel.sgt')" class="w100"/>
	</form>
</div>

<script>
	searchForm = function(form, action) {
		form.action = action;
		popupSubmitForm(form); 
	}
</script>